If an amplifier's output doesn't perfectly match its input, the difference is distortion. Total Harmonic Distortion (THD) puts a number on how much unwanted harmonic content has crept into the signal. Below, we look at what harmonics are, how they add up to distort a waveform, how you measure them, and why any of this matters for bioinstrumentation.
Every periodic signal has a fundamental frequency: the lowest frequency component, and the one that sets the signal's pitch or repetition rate. Below is a pure sine wave at a single frequency. This is what a clean, undistorted signal looks like.
Harmonics are sine waves at exact integer multiples of the fundamental frequency. The 2nd harmonic is at 2× the fundamental, the 3rd at 3×, and so on. Each harmonic has its own amplitude and phase.
What happens when you add harmonics to the fundamental? Drag the sliders below to find out. The faint coloured traces are the individual harmonics; the bright white trace is everything summed together.
Load a typical amplifier harmonic profile:
Amplitude vs frequency for the current signal:
In 1807, Joseph Fourier showed that any periodic signal can be written as a sum of sinusoids. That means you can take a distorted waveform and break it back down into the fundamental and each of its harmonics.
Hit Decompose to watch the current waveform split into its individual sine waves:
In practice, the Fast Fourier Transform (FFT) converts a time-domain signal into its frequency-domain representation. The output is a spectrum: amplitude vs frequency, showing every harmonic component sitting inside the signal.
This spectrum updates as you move the sliders in Part 03. The tallest bar at f is the fundamental. Anything at 2f, 3f, etc. is a harmonic that shouldn't be there.
THD is the root-sum-square of all the harmonic amplitudes, divided by the fundamental:
Each harmonic's contribution to the total:
| THD | Quality | Typical Application |
|---|---|---|
| < 0.1% | Excellent | Hi-fi audio, precision instrumentation |
| < 1% | Good | Biomedical instruments (ECG, EEG) |
| 1 – 5% | Noticeable | May affect signal integrity |
| > 10% | Heavy | Unsuitable for most measurement |
Distortion means the output doesn't faithfully reproduce the input. In audio that sounds bad. In bioinstrumentation it can be dangerous.
Biosignals like ECG, EEG, and EMG carry diagnostic information in their shape and timing. Harmonic distortion can:
The tradeoff in amplifier design: